#ifndef __SHOPPING_H_
#define __SHOPPING_H_
#include<string>
#include<ctime>
#include"linkStack.h"
#include"linkQueen.h"
struct goods
{
    goods(const std::string&name):name(name),price(0),buytime(0){}
    std::string name;//商品名称
    size_t price;//商品价格
    time_t buytime;//购买时间
};
class cartSystem
{
public:
    cartSystem(int size):size(size){}
    ~cartSystem();
    void addGoods();
    void deleteGoods();
    void backDelete();
    void show();

private:
    linkQueen cart;//购物车
    linkStack recycleBin;//回收站
    const int size;
};
























#endif